Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OHRI-1994 Add TB Program menu and tabs shell on the patient chart #1695

Merged
merged 3 commits into from
Nov 22, 2023

Conversation

ODORA0
Copy link
Contributor

@ODORA0 ODORA0 commented Nov 21, 2023

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes the ticket number in the format OHRI-123 My PR title.
  • My work includes tests or is validated by existing tests.

Summary

Screenshots

image

Related Issue

Other

@ODORA0 ODORA0 requested a review from pirupius November 21, 2023 14:28
Copy link
Contributor

@pirupius pirupius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work with this. A couple of comments to consider before we get this in

@@ -2,3 +2,41 @@ export const tuberclosisMeta = {
title: 'Tuberclosis',
slotName: 'tuberclosis-slot',
};

export const TbDashboardDMeta = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export const TbDashboardDMeta = {
export const tbPatientChartMeta = {

@@ -2,3 +2,41 @@ export const tuberclosisMeta = {
title: 'Tuberclosis',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete this. I had added it as a place holder

@@ -1,5 +1,12 @@
import { defineConfigSchema, getAsyncLifecycle, getSyncLifecycle } from '@openmrs/esm-framework';
import { createDashboardGroup, createDashboardLink } from '@openmrs/esm-patient-common-lib';
import {
TbDashboardDMeta,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update this name after meta change

"name": "ohri-tb",
"slot": "patient-chart-dashboard-slot",
"component": "patientChartTbDashboard",
"order": 21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to 24 so that it appears HIV and COVID

Comment on lines 11 to 13
const headerRecentTB = t('recentTuberculosis');
const headerPreviousCases = t('previousCases');
const headerVisit = t('visits');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add default incase a translation doesn't exist for example we don't have translations for this in Amaric

Comment on lines 18 to 19
<Tab>{t('MdrTbEnrolment')}</Tab>
<Tab>{t('PatientTracing')}</Tab>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment applies here. Change all occurrences of this within this PR

Comment on lines 5 to 7
interface TbTreatmentFollowUpListProps {
patientUuid: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reuse the interface defined in the commons. I think it's PatientChartProps to avoid repetition

Copy link
Contributor

@pirupius pirupius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ODORA0

@pirupius pirupius merged commit 676752d into UCSF-IGHS:dev Nov 22, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants